package cn.hqm.hqmtechnology.dao.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 申请记录
 */

@Data
@TableName("sys_sql_record")
@ApiModel(value = "sys_sql_record", description = "实体对象: 申请记录")
public class SqlRecord {
	/** 主键 */
	@ApiModelProperty(value = "主键")
    @TableField(value = "id")
	@TableId(type = IdType.AUTO)
	private Long id;
	/** 记录主键 */
	@ApiModelProperty(value = "记录主键")
    @TableField(value = "record_id")
	private Long recordId;
	/** 环境: 测试0 正式1 */
	@ApiModelProperty(value = "环境: 测试0 正式1")
    @TableField(value = "env")
	private Integer env;
	/** 申请状态: 已申请0 通过执行1 驳回2 */
	@ApiModelProperty(value = "申请状态: 已申请0 通过执行1 驳回2")
    @TableField(value = "status")
	private Integer status;
	/** 目标sql仓库 */
	@ApiModelProperty(value = "目标sql仓库")
    @TableField(value = "sql_house")
	private String sqlHouse;
	/** sql语句 */
	@ApiModelProperty(value = "sql语句")
    @TableField(value = "sql_text")
	private String sqlText;
	@ApiModelProperty(value = "sql语句描述")
    @TableField(value = "sql_describe")
	private String sqlDescribe;
	/** 版本id */
	@ApiModelProperty(value = "版本id")
    @TableField(value = "version_id")
	private Long versionId;
	/** 申请时间 */
	@ApiModelProperty(value = "申请时间")
    @TableField(value = "create_time")
	private LocalDateTime createTime;
	/** 执行时间 */
	@ApiModelProperty(value = "执行时间")
    @TableField(value = "exec_time")
	private LocalDateTime execTime;
	/** 是否删除 deleted == 0? false: true */
	@ApiModelProperty(value = "是否删除 deleted == 0? false: true")
    @TableField(value = "deleted")
	private Integer deleted;
	
}